using System;
using NUnit.Framework;
using System.Collections.Generic;
using System.IO;

namespace ProgrammingLanguageNr1
{
	[TestFixture()]
	public class GlobalScope_TEST
	{
		[Test()]
		public void EmptySymbolTable ()
		{
			GlobalScope symbolTable = new GlobalScope();
			Assert.IsNotNull(symbolTable.resolve("float"));
		}
		
		[Test()]
		public void DefineIntVariable ()
		{
			GlobalScope symbolTable = new GlobalScope();
			SprakType sprakType = (SprakType)symbolTable.resolve("float");
			VariableSymbol variableSymbol = new VariableSymbol("x", sprakType);
			symbolTable.define(variableSymbol);
			Assert.IsNotNull(symbolTable.resolve("x"));
		}
	
	}
}

